const { ipcRenderer, contextBridge } = require("electron");
const closeNewWindowEvent = () => {
    ipcRenderer.invoke("on-close-new-window-event");
};

contextBridge.exposeInMainWorld("OnNewWindowEvent", {
    closeNewWindowEvent
})